<template>
  <div class="colloca">
    <div class="label-names">精品推荐</div>
    <div class="colloca-all" style="height: 2.4rem">
      <div
        class="colloca-tiem"
        v-for="(item, index) in boutiqueList"
        :key="index"
        @click="goGame(item.giId)"
      >
        <div>
          <img :src="item.giBackdrop" alt="" />
        </div>

        <div class="colloca-line">
          <div>
            <div class="colloca-name">{{ item.giName }}</div>
            <div class="colloca-nei">{{ item.giIntroduce }}</div>
            <div class="colloca-bottom">
              <div class="xing">
                <img src="../../../assets/img/xingsvg.svg" alt="" />
                <div class="fenshu">{{ item.giScore }}</div>
              </div>
              <div class="colloca-leiss">{{ item.gtName }}</div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Selected",
  props: {
    boutiqueList: {
      type: Array,
    },
  },
  data() {
    return {};
  },
  methods: {
    goGame(id) {
      this.$router.push({ name: "详情", params: { id: id } });
    },
  },
};
</script>

<style>
.colloca {
  width: 80%;
  margin: 0 auto;
  margin-top: 1%;
}

.label-names {
  font-size: 0.15rem;
}

.colloca-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.colloca-tiem {
  font-size: 0.1rem;
  border-radius: 0.07rem;
  width: 1.7rem;
  margin-top: 0.04rem;
  margin-bottom: 0.4rem;
  cursor: pointer;
  transition: all 0.5s;
}

.colloca-tiem:hover {
  box-shadow: 0px 0px 0.1rem #adacac;
}

.colloca-tiem:hover .colloca-nei {
  padding-top: 0.1rem;
  height: 0.15rem;
}

.colloca-tiem a {
  text-decoration: none;
  color: black;
  letter-spacing: 0.01rem;
}

.colloca-tiem img {
  width: 1.7rem;
  height: 0.65rem;
  border-radius: 0.07rem 0.07rem 0 0;
}

.colloca-name {
  width: 1.5rem;
  margin: 0 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 0.2rem;
}

.colloca-line {
  border: 1px solid rgb(216, 212, 208);
  margin-top: -0.1rem;
  border-radius: 0 0 0.08rem 0.08rem;
}

.fenshu {
  font-size: 14px;
}

.colloca-nei {
  width: 1.35rem;
  font-size: 0.08rem;
  height: 0;
  overflow: hidden;
  margin: 0 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: all 0.5s;
}

.colloca-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 0.15rem;
  font-size: 0.12rem;
}

.colloca-bottom :nth-child(2) a {
  color: rgb(197, 197, 197);
}

.colloca-bottom :nth-child(2) a:hover {
  color: rgb(125, 214, 250);
}

.xing {
  width: 100px;
  height: 20px;
  display: flex;
  align-items: center;
  font-size: 12px;
  margin-left: 0.1rem;
}
.xing img {
  width: 20px;
  height: 100%;
  margin-top: -0.02rem;
  margin-right: 0.05rem;
}

.colloca-leiss {
  font-size: 12px;
  border: 1px solid rgb(192, 185, 185);
  width: 52px;
  text-align: center;
  border-radius: 10%;
  margin-bottom: 0.15rem;
  margin-right: 0.15rem;
  padding: 0.02rem 0.02rem 0.02rem 0.02rem;
  color: #adacac;
}

.colloca-leiss:hover {
  color: rgb(108, 208, 248);
  border-color: rgb(108, 208, 248);
}
</style>